<ui:composition 
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:p="http://primefaces.org/ui"
    xmlns:sec="http://www.springframework.org/security/tags">
    

    
    <h:form>
    <p:menubar autoDisplay="false">
    	<p:submenu label="My Desk" icon="ui-icon-lightbulb">
    		<p:menuitem value="My Work Queue" icon="ui-icon-script"/>
    	</p:submenu>

    	<sec:authorize ifAnyGranted="ROLE_SALES_PIC">
    	<p:submenu label="Sales" icon="ui-icon-star">
    		<p:menuitem value="Project Setup" url="/secured/sales/setup/project.xhtml" action="#{projectSetup.listProject}" />
    	</p:submenu>
    	<p:submenu label="MIS" icon="ui-icon-document">
    		<p:menuitem value="Project Pricing" url="/secured/mis/projectPricingRpt.xhtml" />
    	</p:submenu>
    	</sec:authorize>
    	
    	<sec:authorize ifAnyGranted="ROLE_LOGGED_IN">
    	<p:submenu label="System" icon="ui-icon-gear">
    		<p:menuitem value="My Profile" url="/secured/my_profile.xhtml" icon="ui-icon-person"/>  
    		<p:menuitem value="Change Password" url="/secured/change_password.xhtml" icon="ui-icon-key"/>  
    		<p:menuitem value="Logout" url="#" onclick="javascript:window.location.href='/vipro/j_spring_security_logout';" icon="ui-icon-power"/>  
    	</p:submenu>
    	</sec:authorize>
    </p:menubar>
    </h:form>
    
</ui:composition>